#include "SGD Wrappers/CSGD_TextureManager.h"
#include "CLayer.h"

CLayer::CLayer( void )
{

	int m_nImageID = -1;			

}

CLayer::~CLayer( void )
{

	delete [] m_tTileArray;

}

void CLayer::Render( void )
{
	for( int x = 0; x < GetColumns(); x++ )
	{
		for( int y = 0; y < GetRows(); y++ )
		{
			CSGD_TextureManager::GetInstance()->Draw( GetImageID(), x * GetTileWidth(), y * GetTileHeight(), 1, 1, &GetTile( x, y ).GetTileRect() );
		}
	}
}

